const AliPayHelper = require('./test');
const path = require('path');
let ali =new AliPayHelper({
    APP_ID:"2016091000481268",
    APP_REDIRECT_URL:"http://129.204.112.231:8000",
    APP_RETURN_URL:"http://localhost:8080/myOrder",
    APP_PRIVATE_KEY_PATH:path.join(__dirname,'pem','rsa_private_key.pem'),
    APP_PUBLIC_KEY_PATH:path.join(__dirname, 'pem', 'rsa_public_key.pem'),
    ALI_PUBLIC_KEY_PATH:path.join(__dirname, 'pem', 'ali_public_key.pem'),
});

// var res = ali.buildParams('iphoneX','fdrdrt4354654tgrewtg',1100);
module.exports = function(project, orderid, price){
    return ali.buildParams(project, orderid, price);
};
